#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

int main()
{
  if(fork()==0)
  {
    execl("/usr/bin/ls","ls","-a","-l","-n","-i",NULL);

    exit(1);
  }
  waitpid(-1,NULL,0);
  printf("wait success!\n");









//  printf("i am a process!, pid:%d\n",getpid());
//
//  execl("/usr/bin/ls/","ls","-a","-l",NULL);
//
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
//  printf("hahahahahhahaha\n");
}
